﻿using System;
using UnityEngine;

namespace RootMotion.FinalIK
{
	// Token: 0x02000010 RID: 16
	[Serializable]
	public class ConstraintPosition : Constraint
	{
		// Token: 0x0600013C RID: 316 RVA: 0x00002F33 File Offset: 0x00001133
		public ConstraintPosition()
		{
		}

		// Token: 0x0600013D RID: 317 RVA: 0x00002F3B File Offset: 0x0000113B
		public ConstraintPosition(Transform transform)
		{
			this.transform = transform;
		}

		// Token: 0x0600013E RID: 318 RVA: 0x0001EA24 File Offset: 0x0001CC24
		public override void UpdateConstraint()
		{
			if (this.weight <= 0f)
			{
				return;
			}
			if (!base.isValid)
			{
				return;
			}
			this.transform.position = Vector3.Lerp(this.transform.position, this.position, this.weight);
		}

		// Token: 0x04000087 RID: 135
		public Vector3 position;
	}
}
